<?php /* Smarty version Smarty-3.1.21-dev, created on 2015-05-27 17:31:42
         compiled from "/home/wwwroot/default/sigclamav/templates/oldscan.html" */ ?>
<?php /*%%SmartyHeaderCode:83672550755658deb754435-34740183%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '581084b81a8ec85f5a8024c2016cd9c42b819829' => 
    array (
      0 => '/home/wwwroot/default/sigclamav/templates/oldscan.html',
      1 => 1432719000,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '83672550755658deb754435-34740183',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.21-dev',
  'unifunc' => 'content_55658deb827642_15714964',
  'variables' => 
  array (
    'file_info' => 0,
    'matches' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_55658deb827642_15714964')) {function content_55658deb827642_15714964($_smarty_tpl) {?><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>快速病毒扫描</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="这是一个病毒扫描网站，用户可以上传自己的文件，网站可以分析杀毒">
    <meta name="author" content="wubo">

    <!-- Le styles -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/bootstrap-responsive.min.css" rel="stylesheet">
    <link href="css/scan.css" rel="stylesheet">
    
    <?php echo '<script'; ?>
 type="text/javascript" src="js/jquery-1.8.3.min.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 src="js/bootstrap.min.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 src='http://www.ichartjs.com/ichart.latest.min.js'><?php echo '</script'; ?>
>
 
    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <?php echo '<script'; ?>
 src="js/html5shiv.js"><?php echo '</script'; ?>
>
    <![endif]-->

    <?php echo '<script'; ?>
>

	//定义数据
    
    $(function(){

    	var data = [
    	            {name : 'clamav',value :<?php echo $_smarty_tpl->tpl_vars['file_info']->value['clamtime'];?>
,color:'#a5c2d5'},
    	            {name : 'sigmatch+clamav',value : <?php echo $_smarty_tpl->tpl_vars['file_info']->value['sigscantime'];?>
,color:'#cbab4f'}
    	           
     ];
        
    var chart = new iChart.Column2D({
    render : 'canvasDiv',//渲染的Dom目标,canvasDiv为Dom的ID
    data: data,//绑定数据
    title : '扫面文件时间对比',//设置标题
    width : 800,//设置宽度，默认单位为px
    height : 400,//设置高度，默认单位为px
    column_width:"40%",
    shadow:true,//激活阴影
    shadow_color:'#c7c7c7',//设置阴影颜色
    coordinate:{//配置自定义坐标轴
    scale:[{//配置自定义值轴
    position:'left',//配置左值轴
    start_scale:0,//设置开始刻度为0
    end_scale:<?php echo $_smarty_tpl->tpl_vars['matches']->value[1][3];?>
*1.5,//设置结束刻度为26
    scale_space:(<?php echo $_smarty_tpl->tpl_vars['matches']->value[1][3];?>
*1.5)/10,//设置刻度间距
    listeners:{//配置事件
    parseText:function(t,x,y){//设置解析值轴文本
    return {text:t+"ms"}
    }
    }
    }]
    }
    });
    //调用绘图方法开始绘图
    chart.draw();
    }); 

	$(function(){
		var data = [
		{name : 'sigclamav过滤',value : <?php echo $_smarty_tpl->tpl_vars['file_info']->value['sigbuf'];?>
,color:'#4572a7'},
		{name : 'clamav扫描',value : <?php echo $_smarty_tpl->tpl_vars['file_info']->value['totalbuf'];?>
-<?php echo $_smarty_tpl->tpl_vars['file_info']->value['sigbuf'];?>
,color:'#aa4643'}
	
		];
		var chart = new iChart.Pie2D({
		render : 'canvasDiv2',
		data: data,
		title : {
		text : 'sigmatch+clamav的过滤效果',
		color : '#3e576f'
		},
		footnote : {
		text : 'ichartjs.com',
		color : '#486c8f',
		fontsize : 11,
		padding : '0 38'
		},
		sub_option : {
		label : {
		background_color:null,
		sign:false,//设置禁用label的小图标
		padding:'0 4',
		border:{
		enable:false,
		color:'#666666'
		},
		fontsize:11,
		fontweight:600,
		color : '#4572a7'
		},
		border : {
		width : 2,
		color : '#ffffff'
		}
		},
		shadow : true,
		shadow_blur : 6,
		shadow_color : '#aaaaaa',
		shadow_offsetx : 0,
		shadow_offsety : 0,
		background_color:'#fefefe',
		offsetx:-60,//设置向x轴负方向偏移位置60px
		offset_angle:-120,//逆时针偏移120度
		showpercent:true,
		decimalsnum:2,
		width : 800,
		height : 400,
		radius:120
		});
		
		chart.draw();
		});

    
    
   <?php echo '</script'; ?>
>
  </head>

  <body>

    <!-- Navbar
    ================================================== -->
    <div class="navbar navbar-inverse navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="brand" href="./index.html">Sigclamav</a>
          <div class="nav-collapse collapse">
            <ul class="nav">
              <li class="active">
                <a href="index.php">首页</a>
              </li>
              <li class="">
                <a href="./getting-started.html">关于我们</a>
              </li>
              <li class="">
                <a href="./scaffolding.html">实验室</a>
              </li>
             
            </ul>
          </div>
        </div>
      </div>
    </div>

<div class="scancontent">
  <div class="container">
      <div class="logo">
         <img src="img/sig.png" />
      </div>
      <div class="fileinfo">
          <p><span>文件名称：</span><?php echo $_smarty_tpl->tpl_vars['file_info']->value['filename'];?>
</p>
          <p><span>文件大小：</span><?php echo $_smarty_tpl->tpl_vars['file_info']->value['filesize'];?>
kb</p>
          <p><span>MD5：</span><?php echo $_smarty_tpl->tpl_vars['file_info']->value['mval'];?>
</p>
          <p><span>SHA1：</span><?php echo $_smarty_tpl->tpl_vars['file_info']->value['sha1val'];?>
</p>
          <p><span>分析日期：</span><?php echo $_smarty_tpl->tpl_vars['file_info']->value['uptime'];?>
</p>
      </div>
      <div class="scanres">
          <ul class="nav nav-tabs" id="myTab">
            <li class="active">
              <a href="#analysis"><i class="icon-th-list"></i>分析</a>
            </li>
            <li><a href="#contrast"><i class="icon-search"></i>对比</a></li>
        
          </ul>
          <div class="tab-content">
                
                 <div class="tab-pane active" id="analysis">
                     <table class="table">
                        <tbody>
                          <tr class="theader">
                             <th width="200">扫描引擎</th>
                             <th class="al">扫描用时</th>
                             <th class="al">扫描效率</th>
                             <th width="200">扫描结果</th>
                             
                          </tr>
                          <tr class="tcontent">
                             <td align="left" width="175">clamav</td>
                             <td align="left"><?php echo $_smarty_tpl->tpl_vars['file_info']->value['clamtime'];?>
ms</td>
                             <td align="left"><?php echo $_smarty_tpl->tpl_vars['file_info']->value['clameffi'];?>
</td>
          
                             <td align="left"><?php echo $_smarty_tpl->tpl_vars['file_info']->value['clamres'];?>
</td>
          
                           </tr>
                           <tr class="tcontent">
                             <td align="left" width="175">sigmatch+clamav</td>
                             <td align="left"><?php echo $_smarty_tpl->tpl_vars['file_info']->value['sigscantime'];?>
ms</td>
                             <td align="left"><?php echo $_smarty_tpl->tpl_vars['file_info']->value['sigeffi'];?>
</td>
          
                             <td align="left"><?php echo $_smarty_tpl->tpl_vars['file_info']->value['sigscanres'];?>
</td>
          
                           </tr>
                         </tbody>
                       </table>
                 </div>
                 <div class="tab-pane" id="contrast">
                         <div id="canvasDiv"  title="加速比：<?php echo $_smarty_tpl->tpl_vars['matches']->value[1][7];?>
"></div>
                        <div id="canvasDiv2" ></div>
                 </div>
                 
           </div>
             
             <?php echo '<script'; ?>
>
              $('#myTab a').hover(function (e) {
              e.preventDefault();
              $(this).tab('show');
               })
             <?php echo '</script'; ?>
>
      </div>
  </div>
</div>

<div class="bs-docs-social">
  <div class="container">
    <ul class="bs-docs-social-buttons">
      <li>
        <iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=twbs&repo=bootstrap&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="100px" height="20px"></iframe>
      </li>
      <li>
        <iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=twbs&repo=bootstrap&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="102px" height="20px"></iframe>
      </li>
      <li class="follow-btn">
        <a href="https://twitter.com/twbootstrap" class="twitter-follow-button" data-link-color="#0069D6" data-show-count="true">Follow @twbootstrap</a>
      </li>
      <li class="tweet-btn">
        <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://twbs.github.com/bootstrap/" data-count="horizontal" data-via="twbootstrap" data-related="mdo:Creator of Twitter Bootstrap">Tweet</a>
      </li>
    </ul>
  </div>
</div>




    <!-- Footer
    ================================================== -->
    <footer class="footer">
      <div class="container">
        <p>Designed and built with all the love in the world by <a href="http://twitter.com/mdo" target="_blank">@mdo</a> and <a href="http://twitter.com/fat" target="_blank">@fat</a>.</p>
        <p>Code licensed under <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License v2.0</a>, documentation under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
        <p><a href="http://glyphicons.com">Glyphicons Free</a> licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
        <ul class="footer-links">
          <li><a href="http://blog.getbootstrap.com">Blog</a></li>
          <li class="muted">&middot;</li>
          <li><a href="https://github.com/twbs/bootstrap/issues?state=open">Issues</a></li>
          <li class="muted">&middot;</li>
          <li><a href="https://github.com/twbs/bootstrap/releases">Changelog</a></li>
        </ul>
      </div>
    </footer>



   


    

  </body>
</html><?php }} ?>
